package com.schoolMall.service;

import com.schoolMall.domain.ProductCategory;
import com.schoolMall.dto.ProductCategoryDto;
import com.schoolMall.exception.ProductCategoryException;

import java.util.List;

/**
 * @author:zyh
 * @Time:2021-08-31-19:23
 * @email:1269231889@qq.com
 */
public interface ProductCategoryService {
    /**
     * 查询商品类别
     * @param shopId
     * @return
     */
    List<ProductCategory> queryProductCategory(Long shopId);

    /**
     * 批量插入数据
     * @param productCategoryList
     * @return
     * @throws ProductCategoryException
     */
    ProductCategoryDto batchInsertProductCategory(List<ProductCategory> productCategoryList) throws ProductCategoryException;

    /**
     * 删除商品类型，顺便删除商品下的商品类型id
     * @param productCategoryId
     * @param shopId
     * @return
     * @throws ProductCategoryException
     */
    ProductCategoryDto deleteProductCategory(long productCategoryId,long shopId) throws ProductCategoryException;
}
